function varargout = music_player(varargin)
% MUSIC_PLAYER MATLAB code for music_player.fig
%      MUSIC_PLAYER, by itself, creates a new MUSIC_PLAYER or raises the existing
%      singleton*.
%
%      H = MUSIC_PLAYER returns the handle to a new MUSIC_PLAYER or the handle to
%      the existing singleton*.
%
%      MUSIC_PLAYER('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in MUSIC_PLAYER.M with the given input arguments.
%
%      MUSIC_PLAYER('Property','Value',...) creates a new MUSIC_PLAYER or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before music_player_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to music_player_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help music_player

% Last Modified by GUIDE v2.5 07-Mar-2020 11:03:24

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @music_player_OpeningFcn, ...
                   'gui_OutputFcn',  @music_player_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before music_player is made visible.
function music_player_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to music_player (see VARARGIN)

% Choose default command line output for music_player
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes music_player wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = music_player_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on button press in btn1.
function btn1_Callback(hObject, eventdata, handles)
% hObject    handle to btn1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst(1,1);
    sound(y);

% --- Executes on button press in btn1_L.
function btn1_L_Callback(hObject, eventdata, handles)
% hObject    handle to btn1_L (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_l(1, 1);
    sound(y);

% --- Executes on button press in btn1_H.
function btn1_H_Callback(hObject, eventdata, handles)
% hObject    handle to btn1_H (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_h(1, 1);
    sound(y);

% --- Executes on button press in btn2.
function btn2_Callback(hObject, eventdata, handles)
% hObject    handle to btn2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst(2,1);
    sound(y);

% --- Executes on button press in btn2_L.
function btn2_L_Callback(hObject, eventdata, handles)
% hObject    handle to btn2_L (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_l(2, 1);
    sound(y);

% --- Executes on button press in btn2_H.
function btn2_H_Callback(hObject, eventdata, handles)
% hObject    handle to btn2_H (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_h(2, 1);
    sound(y);

% --- Executes on button press in btn_3.
function btn_3_Callback(hObject, eventdata, handles)
% hObject    handle to btn_3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst(3,1);
    sound(y);

% --- Executes on button press in btn3_L.
function btn3_L_Callback(hObject, eventdata, handles)
% hObject    handle to btn3_L (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_l(3, 1);
    sound(y);

% --- Executes on button press in btn3_H.
function btn3_H_Callback(hObject, eventdata, handles)
% hObject    handle to btn3_H (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_h(3, 1);
    sound(y);

% --- Executes on button press in btn4.
function btn4_Callback(hObject, eventdata, handles)
% hObject    handle to btn4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst(4,1);
    sound(y);

% --- Executes on button press in btn4_L.
function btn4_L_Callback(hObject, eventdata, handles)
% hObject    handle to btn4_L (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_l(4, 1);
    sound(y);

% --- Executes on button press in btn4_H.
function btn4_H_Callback(hObject, eventdata, handles)
% hObject    handle to btn4_H (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_h(4, 1);
    sound(y);

% --- Executes on button press in btn5.
function btn5_Callback(hObject, eventdata, handles)
% hObject    handle to btn5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst(5,1);
    sound(y);

% --- Executes on button press in btn5_l.
function btn5_l_Callback(hObject, eventdata, handles)
% hObject    handle to btn5_l (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_l(5, 1);
    sound(y);

% --- Executes on button press in btn5_H.
function btn5_H_Callback(hObject, eventdata, handles)
% hObject    handle to btn5_H (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_h(5, 1);
    sound(y);

% --- Executes on button press in btn6.
function btn6_Callback(hObject, eventdata, handles)
% hObject    handle to btn6 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst(6,1);
    sound(y);

% --- Executes on button press in btn6_L.
function btn6_L_Callback(hObject, eventdata, handles)
% hObject    handle to btn6_L (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_l(6, 1);
    sound(y);

% --- Executes on button press in btn6_H.
function btn6_H_Callback(hObject, eventdata, handles)
% hObject    handle to btn6_H (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_h(6, 1);
    sound(y);

% --- Executes on button press in btn7.
function btn7_Callback(hObject, eventdata, handles)
% hObject    handle to btn7 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst(7,1);
    sound(y);

% --- Executes on button press in btn7_L.
function btn7_L_Callback(hObject, eventdata, handles)
% hObject    handle to btn7_L (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_l(7, 1);
    sound(y);

% --- Executes on button press in btn7_H.
function btn7_H_Callback(hObject, eventdata, handles)
% hObject    handle to btn7_H (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    y = rst_h(7, 1);
    sound(y);